export const state = () => ({
    token: null
})
export const mutations = {
    setToken(state, token) {
        state.token = token
    }
}
export const actions = {
    nuxtServerInit({commit}, {app}) {
        let token = app.$cookies.get('token')
        commit('setToken', token)
    }
}
  